package com.example.rwq_test.designParttern.multiThread.TwoPhaseTermination;

import java.util.concurrent.TimeUnit;

/**
 * TODO note
 *
 * @author renweiqiang
 * @version 1.0.0
 * @createTime 2022/11/19
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        CountUpThread countUpThread = new CountUpThread();
        countUpThread.start();

        TimeUnit.MILLISECONDS.sleep(3000);

        System.out.println("main shutdownRequest");
        countUpThread.shutdownRequest();

        System.out.println("main join");

        countUpThread.join();

        System.out.println("main END");
    }
}
